package cn.songtx.iot.service;

import cn.songtx.iot.pojo.SysEquipment;
import cn.songtx.iot.vo.FamilyRoomEquipmentVO;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/*
 * 自定义I*Service接口继承IService<T>接口,并在impl中实现,直接测试这个接口
 * */
public interface ISysEquipmentService extends IService<SysEquipment> {
    // 自定义Service接口,根据userId查询嵌套结构的FamilyRoomEquipment对象数组,其中Family数据来自sys_user_family中间表
    List<FamilyRoomEquipmentVO> selectFamilyRoomEquipmentByUser(Long sysUserId);

    // 自定义Service接口,根据userId查询嵌套结构的FamilyRoomEquipment对象数组,其中Family数据来自sys_family表
    List<FamilyRoomEquipmentVO> selectFamilyRoomEquipmentByOwner(Long sysUserId);
}
